package com.xinhe.web.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;

@Data
@Entity
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "拼团商品详情")
@Table(name = "tb_team_goods")
public class TeamGoods {
    @Id
    @ApiModelProperty("id")
    private Long id;
    @ApiModelProperty("商品id")
    private Long goodsId;
    @ApiModelProperty("拼团人数")
    private Integer memberAmount = Integer.valueOf(0);

    @ApiModelProperty("图片")
    private String iconPath;
    @ApiModelProperty("金额")
    private BigDecimal money = BigDecimal.ZERO;

}
